package mahi.nested;


public class NestedExcample { // Top level class
	
	int i=2;
	
	public void testname() {
		System.out.println("hi");
	}
	
	
	class Test1{  // Non static inner class (instance inner class)
		
		int j = 3;
//		static int h =3;
		
		public void test() throws Exception {
			System.out.println(i);
			System.out.println(j);
		}
		
	}
	
	
	public static void main(String[] args) {
		NestedExcample nestedExcample = new NestedExcample();
		nestedExcample.testname();
		
		NestedExcample.Test1 nonstaticinnerclass =   nestedExcample.new Test1();
		
	}
}
